/**
 * Copyright (c) 2006-2007 Jinyi.lu
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of GNU LGPL license by gun.org
 * which accompanies this distribution, and is available at
 * http://gnu.feld-it.at/copyleft/lesser.html
 * 
 * Project Homepage : http://code.google.com/p/demou
 * Source Code: svn checkout http://demou.googlecode.com/svn/trunk/ demou
 * Mailing list : jinyi.lu@gmail.com
 *                stonelu@126.com
 *
 *  
 * Contributors:
 *     JinYi.Lu - initial API and implementation
 */
package cn.tworen.demou.remoting;

/**
 * Created on  2007-2-5
 *
 * Title       : Header.java
 * Description : 
 * 
 * @author     : LuJinYi
 * @version    : 1.0
 * @Date       : 2007-2-5
 * History     : 
 * 
 */
public class Header<H> {
	private String name = null;
	private boolean mustUnderstand = false;
	private H value = null;
	public Header() {
		
	}
	public Header(String name, boolean mustUnderstand, H value) {
		this.name = name;
		this.mustUnderstand = mustUnderstand;
		this.value = value;
	}
	/**
	 * @hibernate.property
	 * @return Returns the name.
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @hibernate.property
	 * @return Returns the mustUnderstand.
	 */
	public boolean isMustUnderstand() {
		return mustUnderstand;
	}
	/**
	 * @param mustUnderstand the mustUnderstand to set
	 */
	public void setMustUnderstand(boolean mustUnderstand) {
		this.mustUnderstand = mustUnderstand;
	}
	/**
	 * @hibernate.property
	 * @return Returns the value.
	 */
	public H getValue() {
		return value;
	}
	/**
	 * @param value the value to set
	 */
	public void setValue(H value) {
		this.value = value;
	}
}
